﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kevin.Controls
{
    /// <summary>
    /// DataBind控件的客户端状态
    /// </summary>
    internal class DataBindClientState
    {
        public DataBindClientState()
        { }

        public DataBindClientState(ClientVdtDataCollection clientValidations, ClientBindItemCollection clientBindItemList, CommandItemCollection commandItemList)
            : this(clientValidations, clientBindItemList,commandItemList, string.Empty)
        {

        }

        public DataBindClientState(ClientVdtDataCollection clientValidations, ClientBindItemCollection clientBindItemList,CommandItemCollection commandItemList,string primaryKeys)
        {
            this.ClientValidations = clientValidations;
            this.ClientBindItemList = clientBindItemList;
            this.CommandItemList = commandItemList;
            this.PrimaryKeys = primaryKeys;
        }

        /// <summary>
        /// 客户端校验规则集合
        /// </summary>
        public ClientVdtDataCollection ClientValidations
        {
            get;
            set;
        }
        /// <summary>
        /// 客户端绑定项集合
        /// </summary>
        public ClientBindItemCollection ClientBindItemList
        {
            get;
            set;
        }

        public CommandItemCollection CommandItemList
        {
            get;
            set;
        }

        /// <summary>
        /// 主键值
        /// </summary>
        public string PrimaryKeys
        {
            get;
            set;
        }
    }
}
